import axios from '@/utils/request.js'

// 获取验证码 /v1/catches
export const captchas = () => axios({
    url: '/v1/captchas',
    method: 'post'
})

// 登录 /v2/login
export const login = data => axios({
    url: '/v2/login',
    method: 'post',
    data
})

// 获取用户信息  v1/user
export const uersInfo = () => axios({
    url: 'v1/user',
    method: 'get'
})

